package eoeProject.edenOfEast.bean;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import eoeProject.edenOfEast.dataBase.DB_EOE_USER;

public class EOEUserBean implements DBBean {

	private Integer user_id;
	private String user_name;
	private String password;
	private Integer role;
	private String email;
	private Date create_date;
	private Date update_date;
	private Integer account_type;
	private String introduction = "";
	private Integer total_GJ = 0;
	private String twitter_link = "";
	private String address = "";

	private List<String> columnList = new ArrayList<String>();
	private List<String> valueList = new ArrayList<String>();

	public EOEUserBean() {
		columnList.add(DB_EOE_USER.USER_ID);
		columnList.add(DB_EOE_USER.USER_NAME);
		columnList.add(DB_EOE_USER.PASSWORD);
		columnList.add(DB_EOE_USER.ROLE);
		columnList.add(DB_EOE_USER.EMAIL);
		columnList.add(DB_EOE_USER.CREATE_DATE);
		columnList.add(DB_EOE_USER.UPDATE_DATE);
		columnList.add(DB_EOE_USER.ACCOUNT_TYPE);
		columnList.add(DB_EOE_USER.INTRODUCTION);
		columnList.add(DB_EOE_USER.TOTAL_GJ);
		columnList.add(DB_EOE_USER.TWITTER_LINK);
		columnList.add(DB_EOE_USER.ADDRESS);
	}

	public List<String> getColumnList() {
		return columnList;
	}

	public void setValueList() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		valueList.add(user_id.toString());
		valueList.add(user_name);
		valueList.add(password);
		valueList.add(role.toString());
		valueList.add(email);
		valueList.add(sdf.format(create_date));
		valueList.add(sdf.format(update_date));
		valueList.add(account_type.toString());
		valueList.add(introduction);
		valueList.add(total_GJ.toString());
		valueList.add(twitter_link);
		valueList.add(address);
	}

	public List<String> getValueList() {

		return valueList;
	}

	public Integer getUserId() {
		return user_id;
	}

	public void setUserId(Integer user_id) {
		this.user_id = user_id;
	}

	public String getUserName() {
		return user_name;
	}

	public void setUserName(String user_name) {
		this.user_name = user_name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getCreateDate() {
		return create_date;
	}

	public void setCreateDate(Date create_date) {
		this.create_date = create_date;
	}

	public Date getUpdateDate() {
		return update_date;
	}

	public void setUpdateDate(Date update_date) {
		this.update_date = update_date;
	}

	public Integer getAccountType() {
		return account_type;
	}

	public void setAccountType(Integer account_type) {
		this.account_type = account_type;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getTwitterLink() {
		return twitter_link;
	}

	public void setTwitterLink(String twitter_link) {
		this.twitter_link = twitter_link;
	}

	public Integer getTotalGJ() {
		return total_GJ;
	}

	public void setTotalGJ(Integer total_GJ) {
		this.total_GJ = total_GJ;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

}
